package com.jemmyee.shop.entity;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * @Description:商品类别扩展属性
 * @author:jemmyee@gmail.com
 * @date:2011-4-1
 * @version:v1.0
 */
@Entity
@Table(name = "so_attribute")
public class Attribute implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer categoryId;
	private String name;
	private Short inputType;
	private Short type;
	private String values;
	private Short index;
	private Short sortOrder;
	private Short isLinked;
	private Short group;


	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "category_id")
	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	@Column(name = "name", length = 60)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "input_type")
	public Short getInputType() {
		return this.inputType;
	}

	public void setInputType(Short inputType) {
		this.inputType = inputType;
	}

	@Column(name = "type")
	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "values", length = 65535)
	public String getValues() {
		return this.values;
	}

	public void setValues(String values) {
		this.values = values;
	}

	@Column(name = "index")
	public Short getIndex() {
		return this.index;
	}

	public void setIndex(Short index) {
		this.index = index;
	}

	@Column(name = "sort_order")
	public Short getSortOrder() {
		return this.sortOrder;
	}

	public void setSortOrder(Short sortOrder) {
		this.sortOrder = sortOrder;
	}

	@Column(name = "is_linked")
	public Short getIsLinked() {
		return this.isLinked;
	}

	public void setIsLinked(Short isLinked) {
		this.isLinked = isLinked;
	}

	@Column(name = "group")
	public Short getGroup() {
		return this.group;
	}

	public void setGroup(Short group) {
		this.group = group;
	}

}